package com.project.controller;


import com.project.bean.StatMonthSellBean;

import com.project.service.IStatMonthSellService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("statM")
public class StatMonthSellController {
    @Autowired
    private IStatMonthSellService statMonthSellService;

    @RequestMapping("findByYear")
    public List<StatMonthSellBean> findByMonth(String year) {
        return statMonthSellService.findByYear(year);
    }

    @RequestMapping("findYer")
    public List<Integer> findYear() {
        return statMonthSellService.findYer();
    }
}
